//
//  RankHeaderView.m
//  Bracelet
//
//  Created by jing zhao on 2/16/15.
//  Copyright (c) 2015 jing zhao. All rights reserved.
//

#import "Mycity_RankHeaderView.h"

@interface Mycity_RankHeaderView ()
@property (weak, nonatomic) IBOutlet UILabel *rankNumber;
@property (weak, nonatomic) IBOutlet UILabel *rankName;
@property (weak, nonatomic) IBOutlet UILabel *runMeter;
@property (weak, nonatomic) IBOutlet UILabel *ui_allCities;
@property (weak, nonatomic) IBOutlet UIProgressView *ui_progressView;

@end

@implementation Mycity_RankHeaderView
-(void)setMyRank:(APIOneCityTotalRank*)oneRank andTotalrunners:(NSString*)totalRunners
{
    NSLog(@"%@",oneRank.strCityRunRanking);
    self.rankNumber.text =oneRank.strCityRunRanking;
    self.rankName.text = oneRank.strCityName;
    self.runMeter.text = [NSString stringWithFormat:@"%@ km",oneRank.strCityRunTotal_metre];
    self.ui_allCities.text = [NSString stringWithFormat:@"ALL %@ CITIES",oneRank.strCityRankNum];
     self.ui_progressView.progress = [oneRank.strCityOkproportion floatValue]/100.0;
}

@end
